<html>
<head>
<title>random test</title>
<script type="text/javascript">
var cl= console.log,
	json= JSON.stringify;
function clj( e){
	console.log(JSON.stringify(e));
}

Object.create = function( o){
	function F(){};
	F.prototype = o;
	return new F();
};

Object.extend = function(destination, source) {
	for (var property in source){
		destination[property] = source[property];
	}
	return destination;
};

Object.inherit = function( newobj, parent){
	parent = Object.create( parent);
	newobj = Object.extend( parent, newobj);
	return newobj;
};

Object.inherit2 = function( newobj, parent){
	function F(){
		for (var property in newobj){
			this[property] = newobj[property];
		}
	};
	F.prototype = parent;
	return new F();
};

var newObj = {
	prop: 42,
	toString: function(){ return "new";}
};

var oldObj = {
	foo: "bar",
	toString: function(){ return "old";}
}

</script>
</head>
<body>


</body>
</html>